package com.jsftoolkit.utils;

import java.io.Writer;

/**
 * Writes to nowhere. All written bytes are discarded.
 * 
 * @author noah
 * 
 */
public class NullWriter extends Writer {

	@Override
	public void close() {
		// nothing to do
	}

	@Override
	public void flush() {
		// nothing to do
	}

	@Override
	public void write(char[] cbuf, int off, int len) {
		// do nothing
	}

}
